import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: function (resolve) {
        require(['../views/wattsen/home.vue'], resolve)
      }
    },
    // {
    //   path: '/time',
    //   name: 'time-list',
    //   component: function (resolve) {
    //     require(['../views/time/list.vue'], resolve)
    //   }
    // },
    // {
    //   path: '/time/establish',
    //   name: 'time-establish',
    //   component: function (resolve) {
    //     require(['../views/time/establish.vue'], resolve)
    //   }
    // },
    {
      path: '/index',
      name: 'index',
      component: function (resolve) {
        require(['../views/wattsen/home.vue'], resolve)
      }
    },
    {
      path: '/list',
      name: 'list',
      component: function (resolve) {
        require(['../views/wattsen/list.vue'], resolve)
      }
    }
  ]
})
